package com.todo.content.iface.backend.request;

import com.todo.common.common.entity.CurrentStaff;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author zhangwenxiang
 * @date 2024/3/14 21:08
 * @description
 */
@Data
@Schema(title = "关闭内容入参", description = "关闭内容入参")
public class DisableContentByIdReq {

    private CurrentStaff _staff;
    /**
     * 主键
     */
    @NotNull
    @Schema(title = "内容id", description = "内容id")
    private Long contentId;
    /**
     * 启禁用
     */
    @NotNull
    @Schema(title = "启禁用", description = "启禁用")
    private Boolean enable;

    public boolean baseCheck() {
        if (contentId == null) {
            return false;
        }
        return true;
    }
}
